home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / MacHacksBug / Python 1.5.2c1 / Mac / Tools / IDE / Wkeys.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2000-06-23  |  1.1 KB  |  52 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 1.5)
  3.  
  4. spacekey = ' '
  5. returnkey = '\r'
  6. tabkey = '\t'
  7. enterkey = '\x03'
  8. backspacekey = '\x08'
  9. deletekey = '\x7f'
  10. helpkey = '\x05'
  11. leftarrowkey = '\x1c'
  12. rightarrowkey = '\x1d'
  13. uparrowkey = '\x1e'
  14. downarrowkey = '\x1f'
  15. arrowkeys = [
  16.     leftarrowkey,
  17.     rightarrowkey,
  18.     uparrowkey,
  19.     downarrowkey]
  20. topkey = '\x01'
  21. bottomkey = '\x04'
  22. pageupkey = '\x0b'
  23. pagedownkey = '\x0c'
  24. scrollkeys = [
  25.     topkey,
  26.     bottomkey,
  27.     pageupkey,
  28.     pagedownkey]
  29. navigationkeys = arrowkeys + scrollkeys
  30. keycodes = {
  31.     'space': ' ',
  32.     'return': '\r',
  33.     'tab': '\t',
  34.     'enter': '\x03',
  35.     'backspace': '\x08',
  36.     'delete': '\x7f',
  37.     'help': '\x05',
  38.     'leftarrow': '\x1c',
  39.     'rightarrow': '\x1d',
  40.     'uparrow': '\x1e',
  41.     'downarrow': '\x1f',
  42.     'top': '\x01',
  43.     'bottom': '\x04',
  44.     'pageup': '\x0b',
  45.     'pagedown': '\x0c' }
  46. keynames = { }
  47. for k, v in keycodes.items():
  48.     keynames[v] = k
  49.  
  50. del k
  51. del v
  52.